Added chi^2 calculation for SN1a data