Syntax fixes #buggy

While I can generate result files now, the results do not seem
meaningful. Same files are returned for any search.

#BUG Assume ranking is wrong. Issue with sort function? Or in using
unigram probabilities? Consult log file.