added probability function to markov.py
update markov functions
fixed markov