remove unused imports, trailing whitespace and redundant parentheses.