a few minor formatting changes and use a 'seen' hashset to prevent adding duplicate paths to the repo zip