Added module docstring. Cleaned up imports.