Restructured MatchSelector, worked on sorting by phrase class.  Fixed a lot of bugs.  Added AmbiguityException and NonsenseException and hooked them up in the terminal.