added the assignment of nOptPars to makedata, otherwise it won't work when users run makedata before running mmsoda