Separating trigger code from stim display code

not done yet, but a good start