working on new example code

also worked on documentation