added main file and fixes to xml2json file