Added sdss spectra quality check