update of examples - added the possibility to log serial communication between REX and Arduino