Fix some line lengths to make pylint happy
Fix formatting of docstrings; add more docstrings