iContinued fixing small bucks with error checking of transmit.c