addArchive: a new subroutine for adding files to the archive.