Small fixes

1. Log to a file instead
2. Print the word as opposed to its values
3. Delete a copy paste error