cleaned up implementation and documentation of spectra.tools.doppler_shift