added slight tolerance checker to comparison function, allows for 1% differences in constituent frequencies obtained from fft