updated loadspectrum, fixed flux errors