Improve and sphinx-ify documentation