fix type
user wider window for FFT while computing PSD
implement function for trimming the PSD