Added an example config file, and heartbeat handling.