added makeTADetectStim.m