Several bugfixes, hopefully to improve the wavelength calibration issues with telluric correction.