changed export transform function to use gson and output boundbox.xml as well