more PEP8 and docstring corrections