Bugfixes for state machine. now acquisition fifo gets read properly.