Remove unused main and unused imports