Robust program for error checking. Does not dump hex to file.