Made some changes recommended by pylint.  Mostly docstrings and other small niceties.