metabolic model, changed more saved variables

added the variables needed and the formula for the metabolic model.
changed the way the saved variables work