changed thresholdVal range in runTrial() (minor change)