many changes: option passing from wrapper, include skip-dup option, fix memory bug in dedup Rscript, doc updates, etc