removed 'headerl' parameter from send_data_frame()
removed statep param from check_idcode()