Optical spectroscopy in transition metal dichalcogenides