markov module closes #136