Modify decayFit to allow givin parameters a function arguments

This version can not only read fit parameters from the command line, but
also take them as arguments of the fitting function.