fixed new assumption to apply measured imperfections for cones, improved code formatting