remove unused imports and fix spelling errors