more AtkVar changes

Mostly done, just need to do the xml reading, and put the data into xml
format