fix bug with seed generation and write test

Signed-off-by: Koleman Nix <kolemannix@gmail.com>
Polish up generate function. Remove :head from final word list in a hack-ish way

Signed-off-by: Koleman Nix <kolemannix@gmail.com>