Normalized line endings, added some comments