This is a code that generates and simulates hierarchical Markov models with couplings between the behavior at each level and the transfer matrix at the levels above and below.