Removed unused imports and fixed some stupid errors