Improve example

- Call cardreader.connect on card insertion, cardreader.disconnect
  on card removal.