Adds more detailed docstrings.
Adds Sphinx documentation.