improved processWordSearch

-handles errors
-refactored
-requires renaming