Adds Apache v2 License and README with heartbeats example explained