Updated docstrings, added pydoc reference, added sphinx documentation.