High-resolution spectroscopy in the 3-5 micron region with a small grating spectrometer