Hacking
Removed superfluous code
Fixed `update-in-state!' and websocket bugs