updated CreateCurves.py and add ui script