Wrote some of the index.rst
rewrote docstrings and generated documentation