Now updates index file
Adds support for copying references that are directories
Excludes files starting with /data from reference copying
Now uses argparser to parse command-line arguments