General/fix spectrum1d

@followthesheep the first go at fixing the spectrum1d object check it out.