Fixxed a bug with the overwrite function and added an option to delete the archives to a path