Added ability to read words from a file