Makes a set of more isolated individual functions, which should make it more clear what's going on. Improved naming, added some comments. Some extra cleanup is possible to get rid of generic vectors called vec and disp.
Makes a set of more isolated individual functions, which should make it more clear what's going on. Improved naming, added some comments. Some extra cleanup is possible to get rid of generic vectors called vec and disp.