fixed NPE in socket client
added plain unsubscribe
added class comments