A first-principles DFT study shows that nitrogen and oxygen co-doping, together with carboxylic acid functionalization, ...