updated parameter file reading to accept values for the maximum number of iterations in the longer loops