fix 'unexpected operator' warnings
add priority, better handling of error messages
remove "-e" option from xpath

removed the "-e" option to play nice with other machines.
Merge pull request #1 from cj123/master

add TODO features, and fix a shell error