pep8 improvements, documentation