Changed the way to accept peaks in the graph to extract the calibration function
	* the residual now are check for all the possible peaks
	the desired peak is the one with the lowest residual (and not only low enough)
More debugging