Update all docstrings.
More cleanup and use modern Python idioms.