Added test specs.  Documentation.  Identified faulty logic in word compare.