adding chi2 and KS probability calculation, and for now printing it on output histograms
updating the functions for the changes which have been made to the tail fitting code, although they do not really affect the bias study