More docstrings, and some pep8.
More docstrings.