moving 'cancelled' stuff to outside of run's while loop
adding comments to RotaryEncoder example