Some cleanup.
Get rid of excess imports.
Delete huge, ugly docstrings.