fix line endings, and correct docstrings.