Form docstring for sphinx

Rewrite docstring to make look good of sphinx.