Reformat and optimize code (imports)