Add support for sphinx-style documentation

The code is a bit loosy but it does the job.
Switch docstrings to sphinx style