XML write added
program is complete