Functional flashing stim code- no flashing ITI -LG
Fixes to ITI calculations and timeouts