Module docstring added
Some excess code removed