Added averaged samples plotting, FFT and frequencies.