implemented hanning window

This implements hanning window on the signal, before passing it to the FFT.