Added improvements/new features to read spectral conf, by Freddy