Reformats and organizes imports