DEV: Add newton raphson algorithm to try to calibrate values of the parameters (still bugged)