Updated docstrings to use Sphinx format