added more functionality for the calls and added the getproducts call...changed the ability to use json or xml