bug in check for correct rounding: wrong dfs used with t and r test. fixed.
more specific regular expression for chi2