fixed #57
cleaned example code (boy some of that looked old)