Added history to the model-based learner.

Also had voids return the class they were  members of in order to allow chaining of method calls.