Emma's Markov Model Algorithms