Peak finding

Work on finding peaks in 1D curves to support automatic calibration.
this is not english. also needs to be tabbed