working pub/sub setup
updated documentation