Update for readTMBin.c