IDL procedures to deal with SDSS spectra