Added probabilities computation and probabilities saving and loading to json files