Final one-wire protocol

Finalized one-wire protocol