Added the xml parser and modified the gui