edit archiveBuilder.py

code cleanup and adding comments.