Refactored archive scripts.  Added variables and comments.