Remove unused imports.
Add auto-generated files to .gitignore.