Added example input
Adds functionality to output xml as an array