Fixed another bug causing the chi-squared report to throw an exception.
Removed debugging output in the chi-squared method.