Improve example

- Call cardreader.connect on card insertion, cardreader.disconnect
  on card removal.
- It fixes bug #3.