fixed: gwords now works correctly thanks to @mdebbar for the fix
enhanced: some refactoring based on @mdebbar suggestions
enhanced: words function now have the same functionality without using regular expressions
added: automated tests and docs for gwords function