#61 added saveToFile method to dump info in xml file