Multi-phenotype file save in stats. Changed prototype calls.

Changed ped_close to add one parameter. See libs/bioinfolibs/bioformats/ped/ped_file.c