Ensures ingoing regime OnEntry state updates happen at time step when reg trans takes place. Fixes #10

Added debug option on a number of scripts