Remove unused variable
Add XML and JSON support + update doc