created a getter function for the Ttable so that we can extract expected counts and probabilities from in the main function. Some more modularization is needed. For example, all the model 1 iterations need to be in a separate function call