back on XML support, made xml generator
finishing (sorta hardcoded) xml file support, merging back to main