rewrote transmit module

redfined state machine states as localparam