Fixed run time error, updated http response to switch to xml if xml data requested, and updated the submodule to the latest commit