Laser spectroscopy of cold molecules