Fixed duplicatiaon in xml export
Revised aggregation script for integration