removed unused imports and applied checkstyle