altered graphlines to read a series of files directly from the spectrometer