fixed bug with pub/sub pattern, updated readme