Reworking the write operation and more data signalling.
Fixed reg updated and changed the control of data signalling to the fifo counter.