Beta probabilities

Fixed merge conflicts with master branch.
Will take a look this week and get back to you.