fix format number
add format.writer.xml.write() function
fix designation of event's type
replace a number of functions that iterates over a list with one
function