Changed probability calculation and added tests.
More testing for probability calculator.

Still bugs in how the transition probabilities are calculated in a large
log.