Cleaner code.
Add Sphinx docs to repo.