Fixes to doTrialLaser code

Signed-off-by: Lindsey <glickfeld@neuro.duke.edu>