remove blank lines and unused imports