update markov generator to output pickle file