added fft computation and averaging the impulse responses