error files still work, verified. Removed puts output, so outputs to files. Also reads output file name as command line arg, (not stdin), defaults to OUTPUT