Fixed even more bugs with the wavelength calibration. NOW it should work!