Markov Model code. Copied from BayesianModel and changed the interface. Correcting the documentation and test cases remain