Fix markup to be compatible with Sphinx and add rough API doc
19 files changed