Email Record: Chi-squared goodness of fit tests with applications /