updated xml code with new incomplete functions and consolidated atm_vars variable