Comletely refactored inspector with xpath selector support