A langevin based model for simulating bacterial dynamics, along with a Poisson like process for state switching. Code can be found here, might try to add interactive plots later.