Moved files to the root.
Major refactor to make things more Pythonic.
Made comments more pydoc-friendly.