Docstrings and other minor changes.