added canned query documentation and slight refactor