move hapi example out to top level. add comments