brought fileutils in.  added comments to pug.c