Add function to write wordList to Index.txt
Add typedefs