added possibility to load dark and lamp spectra from file