added doc model so that manually-fed training docs can be retrained on later
added markov generator resetting and brain retraining of markov generator