Main concepts for diffraction grating spectrometer