Added basic event/render loop to example.