added code for storing measurement records corresponding to stochastic evolution