ZLP Hann window vectorized for faster performance. Also, some comments added to help readability