Fixed up some docstrings.
Added autodoc support, and some other minor doc fixes.