Use Traverser-typed get override function to simply query syntax

Remove unnecessary parentheses. Add doc strings.