Modifies getInitialPeaks to return single composite function of initial peak positions.
initialPeaks expected to be a single composite function. This plots, but still not in the functionWidget.