pep8 and docs in code fixes