Added heartbeat example and added to readme