Bug: problem developing the calibration curve.  Traced it to a failure
of convergence of R1.  It would get stuck at the initial guess and not
float around.  I managed to get around this by using a random initial
guess of the parameters. The random intial guess is for the parameter
estimation algorithm (lmdiff).  Function ini10 is used. There may be
other issues however the problem looks like it's gone.