Add comments for Chisquare.scala