Fix whitespace errors and remove "No newline at end of file" git warnings

Fix whitespace errors and remove "No newline at end of file" git warnings.