made the radius of control points configurable and removed unused variables