use named tuples for control points and control point averages. Fixed calculation of average value