Added transition noise resampling

I'm still a bit confused about the latent state trajectories -- I get something that looks more and more like the observed voltage, without too much apparent change in the latent state trajectories. I think this works now though -- I needed to edit a few things to get the indexing to work for the state.