update examples, fix #29
improve doc