added docstrings and some tweaks
Changed from fftpack to np.fft