Fix for detecting multi-word phrases

Rearranged code to be able to detect multi-word phrases. Code also now only detects "whole words" (i.e. no longer detects "till" within the word "still"). Additionally, reverted back to separate "Frequency" and "Redundancy" buttons until they can both be displayed at the same time effectively. Also includes a few formatting and comment changes to make code look nicer.