Finishing up writing transition probability calculator.