small fixes on output function in wordlist