updated get_xpath function & added get_exact_xpath function
added mode param & bugfixes