Sphinx docs

Work in progress, I'm opening a pull request to obtain an issue number.