began samples file addition, added min chi sum