Fixed newlines at end of file and end of line