code: def _add_versions(samples):
      
      samples[0]["versions"] = {"tools": programs.write_versions(samples[0]["dirs"], samples[0]["config"]),
                                "data": provenancedata.write_versions(samples[0]["dirs"], samples)}
      return samples
docs: Add tool and data versions to the summary.