Removed unused imports.
Cleanup and documentation.

Doxygen docs, code cleanup.