Upgrading pow and cross spectra calculation scripts