OPTIMIZE IMPORTS AND REFORMAT CODE