changed constants to class attributes
fixed markov process calculation of contribution