More work on XML IO

Modification of interface/implementation

Starting creation of XML IO tester in main.cpp

Minor input code fixes