finished the data generation and laid foundation for xml generation