Fix up RST files
reformat api.rst
fix makefile
fix up rst formatting