Updated initial conditions generator and correspondingly the inject_gas code too.