Updated internal documentation.
Moved module docstring