Chemistry in Protoplanetary Disks: the gas-phase CO/H2 ratio and the Carbon reservoir