Custom duplicate comparion functions dup_cmp and dup_key supported.
Some renaming.
Skip dot file, add better print, better duplicate detection.