Add Hello World example to readme and remove duplicated code from examples