Optimize imports and empty lines