closes bugs #991990 & #991991 - url hash is consistent with ranges, ctrl toggles single lines properly

Spelling and doc fix
Merge highlighting fixes. Fix bug 991991. Fix bug 991990. Close #274.