Support for Functions ms()

USAGE:

trace.ms(info, theta, grad, scale, flags, fit.pars) 
trace.ms2(stats, theta, g, scale, flags, opt.pars) 
trace.print(stats, theta, g, scale, flags, opt.pars) 

This is support for the functions ms() and nls(). It is not intended to be called directly by users.