fixed XPath end slash bug
Bug fixes and updated documentation