removed empty XML file
XML format: 2 spaces indents
removed char size param; simplified code
added some tests