Updated example sketches to match lib changes

Changed variable access to accessor functions.
Changed wait for ACK from while{} to do{}while so that ACKReceived
always gets called at least once.