Added the restorting functionality
Merge branches 'gh-pages' and 'master'