Added method XMLtoJSON to convert XML data to JSON
Removed redundant dependencies
Fixed an issue with the erorr handler