This function performs a number of gof tests for discrete data and finds the adjusted p value
Useful links