power spectra now write out properly