Added DOF_corr() to fix chi2 and made numtrials an option for estimate_offsignal_redchi2