Updated to version 0.0.2

Added Sphinx documentation, cleaned up the docstrings, and fixed a bug
in the machine flow.