Setup of Markov Chain, last phase of the project. Fixed two warnings.