extremely basic and crummy curve fitting
fix some bugs in smoothing implementation
increase the tolerated error
implement adjustment using newton raphson root finding