Updated docstrings, created sphinx documentation.