Removed small errors such as unused imports and variables