added check for number of thresholds in the model syntax (compare to varTable)