Fix trailing whitespace and long lines