changed how argument parsing works. Added support for an Xml logger.