improvement of code
updated examples
fixed websocket
new example