First working version.
Merge branch 'master' into gh-pages