added logging
Merge branch 'master' into gh-pages