Fixes #2 and adds some more xquery examples to documentation