improved calculation of curve point coordinates and addition and deletion of break points is now implemented