Import relevancy improvement code.
Address philc's comments.
Remove verbose commentary.
Merge pull request #1060 from smblott-github/relevancy

Relevancy - incorporate the position at which matches occur.