complete markov rewirte, added TODO file