AE: Found a bug where I wasn't subtracting the pedestal for the template amplitude
AE: Record the number of degrees of freedom so that we can later calculate a probability
AE: Record and use the number of degrees of freedom to print out a probability when debugging