basic markov chain training and generation are now working