style and comments changes
variable names refactoring
switch to upstream FilterAndSortCandidates() version

This will fail badly on strings with non-ASCII symbols.
See #254
add error handling for sorting
more style fixes
disable vim message on filtering error