Added write first mode
Changed signal names, read/write first mode switch