made curve tool much better, debugged move insert, although is not foolproof yet