- fixed reconnecting issue
- added basic example