You need to put about 10% of your income into a long-term retirement fund. , and have (ideally) six months of living expenses in a money-market or savings account (Must have).
There is a catch though. If the US people really switch to 10% savings rate, we'll get Great Depression 2.0 and 6 month savings will be way too low. It's called Paradox of thrift http://en.wikipedia.org/wiki/Paradox_of_thrift
That's why the only sound strategy is to save yourself, but push others to spend. Unfortunately it does not work long term either because saved money is a form of credit to said others and sooner or later they will default.
BTW, we are, in a sense, made from gas. The process eventually generates half of our protein and feeds at least 1/3 of humanity. But without it there probably would be no WWI, Revolution, WWII... It was developed by the same guy who created Cyclon-B. http://en.wikipedia.org/wiki/Cyclon_B
I've noticed several design suggestions in your code.