Fixed bug in the Markov chain generator.

Signed-off-by: Paul G <p.ganssle@gmail.com>
Changed source saving.

Signed-off-by: Paul G <p.ganssle@gmail.com>