made futher refinements to pep8 styling and comments