Remove any trailing spaces

Small cleanup of code. Just removed all extraneous whitespace and added a newline to the end of one file that didn't have it.