added example paramsToChange to input file
fixed token count error code
properly initialize in objective function