clean up some example code and add install and run instructions