code cleanup, docstrings added, mostly passes

pylint now