MAIN: Removed all whitespace and file-end lines

Using my script which searches recursively for specified filetypes, available here:
https://github.com/cpelley/fmt_tools

This PR replaces #532.