Update example to use publish/subscribe pattern
Update README