fixed cache bug and delayed index fade
changed MarkovModel to new style class