Fixed misplaced doc index.
Added some documentation. Sphinx docs still very crude.