Added parameter parsing and logic for figuring out which files to

include in download. Used in generating a metadata file.