finished the first draft of xml reporting