refactored word comparison script into a separate module, added cli