word_smith.c cleaned up