Attempt to streamline computation; partial work.
Add empty surface.
Rewrite of algorithm, together with documentation.
More code and docstring cleanup.
Add notes on homological interpretation of algorithm.