some bugs are fixed
Merge branch 'master' into gh-pages