fixed peakpicker() so that if no ranges are selected, the whole range is specified