Whitespace cleanup and line endings