Finish reorganizing update code
Merge branch 'master' into gh-pages