Fixed xmit bug and added shell for retransmit