changed f0

added another parameter to control, maxnpeaks