Added JSON XML document
Added functionality to store the Input and Output template
Cleaned code