Fixed some issues.
Merge branch 'master' into gh-pages