Remove trailing spaces, add new line to end of file