remove unused imports, standardise import order, etc