Change FrequencyDomain.freq_peaks to FrequencyDomain.peaks.
Remove filter_small_peaks parameter from FrequencyDomain.peaks.
Modify FrequencyDomain.fundamental to choose the fundamental from the harmonic series with highest energy.