Misc. fixes
Merge branch 'master' into gh-pages