adding dedupe usage and documentation
dedupe now selects latest possible version - needs tests