Documentation Improvements

Improvements and refactoring of sphinx documentation.