minor corrections related to mf replaced by Z (index of observable variables in the transition matrix)