added some minor documentation. made failed attempts at plotting spectra more graceful