Interim commit of EV cost function, trialwise pseudorandom schedule with random sigmoid draws, rmsearch function for starting values, and a few misc fixes in logistic model.