Wordlist save function now handles empty words correctly. Also some comments added