Improves performance of CO2 function

Also adds groundwork for performance testing
Merge pull request #31 from lukecampbell/perf-work

Improves performance of CO2 function