Added reduced Chi Squared functionality

Returns chi2 test results as well
Added peak selection based on Chi2
Final commit for 12/11/2013

Can now collect data from analyseTestSet and will create a sort of
histogram of voltage frequencies. Set running over night for 10000
waveforms