remove comments and unused imports