added better formating to code and xml file