changed the calculation of benchmark resistance to reject only the first two data points on a ramp and use the next three as average. changed ramp down condition to be (counter > 2 AND res < 0) rather than res < 0 at any point in the ramp.