implemented debug vars for tracking TX/RX

close #4