Fix mixed line endings.
Fix typo, remove trailing whitespace, fix mixed indents.