Fixing some bugs in xml parser
adds jud builder