Initializing program from xml file