added gain and FFT spectrum analysis
cocat