Remove trailing whitespace, add newline at eof
Remove unused USE statement
Prevent error when previewing new post