added spectral correction function
included function to integrate power spectrum between given wavenumbers