working but half baked version of output format selection
using XML_Serializer, which generates a lot of notices and warnings.
re-create functional version
added options for xml_serializer
removed 'key' entry from output xml
Merge pull request #4 from upieper/output_format_selection

Output format selection