take input filename and output bucket from command line args
cleanup residual error calculation and reset counter between MR passes