Molecular interactions and electronic spectra