modelRevert and genPerceptAndUpdate implemented. changed some function header of revertHistory and genPerecptAndUpdate
Merge remote-tracking branch 'origin/master'