refactor, fixed get_xpath function, unified names, additional funcions
included to analyze() function, program now can be executed correctly,
(more changes are coming)