Core Excitation and Ionization of Molecules