Remove unused imports and consecutive blank lines