added both option for wavelength and frequency in output