assorted updates

statics/fixes is_bag
strips comments, etc