add/modified some examples
debug function
get rid of unnecessary lines, added eval function