Numerous pep8 violations fixed, as well as some typo's