add core chi2pdf
change sigma2 (need to be a parameter)
fix bug in specex_test_psf_specter_io