Start of mapping XML to Json

Also created the refreshGui function for bindings elements to GUI