Fixed some trailing whitespace & missing newlines at EOF