Use format() for most strings; print current row number in logs; print errors to stderr