remove duplicated keys
remove duplicated keys
Update output example (fixes #27)
Update test for issue #27