Refactored the XMLTool.

Changed the constructor to automatically read an XML file.
Overloaded some methods.