added first draft of totlgas_smpco2con and totlgas_bkgco2con code