Added Chi-Square calculations.
Included Chi-Square confidence in output.
Fixed rubocop errors.