Minor improvements to markov_generator.