Added some docstrings.
Add Sphinx docs.