added most of the small eso correction, and fixed the bug causing the wavelength array of the binary tables to go wacky