docstrings, minor corrections.