Peak finding

Work on finding peaks in 1D curves to support automatic calibration.
And there is a note in the code that this might get overhauled to store the angles as q which would mean we don't have to store lambda.