Fixed hashbang, added docstrings, pep8 and pylint now clean.