Separated word list

More comments and separated the word list from the functions.