Rebasing minScore depending on number of keywords, fixing bugs