Added error handling and return values for serveral uart_tx commands