fixed stopping criterion. now THRESH defines fraction of expected remaining evidence