first draft on xml parser and communication. a long way to go. code definitly not perfect. will refactor asap