added windowing to PSD calculation