pngw fixes

renamed CLI to pngw, removed some debugging code, fixed some errors.