added switch for evaluation to change the number of steps used in td error