Added XPath utilities and updated the javadocs.