update demo code
Merge branch 'master' into gh-pages