added output naming to write_xml
dropped debug output
added discards xml generation
cleanup
added datetime
cleanup