Add -v option to replace vowels in words.  Refactor code to make use of functions for readability.