quick fix to MarkovTMat for pandas
more fixes to MarkovTMat (logic)