- added method for computing partition function and accessing pair probabilities