markov generator integration bugs fixed