Corrected bugs in compound phrase treatment; added unit tests for multi-word phrases, compounds and pattern length; cleaned out some unused code.