Curve splitting is added to handle seam passing by initial curve. test cases are added. Minor corrections.