An ab initio study of the ground and excited state chemistry of phenyldiazirine and phenyldiazomethane.