Add banner-like comments to the source file
Use 'from __future__ import print_function' idiom
Add addfile/extractfile methods
Simplify main() function