Update XMLTools.js

Updated to accept a document as well as string input
Changed how it was initialized slightly
Updated init sample
Update XMLTools.js

Fix copy paste error with xml string input
Merge pull request #2 from benbahrenburg/master

Slight change to init & add support for xmldoc being passed in