Correctly averaging FFT data, finding the median threshold value and using that instead of random spike