Clean up docstrings and comments