restore function tested on mac

The restore functionality is now done with a basic example on Mac

Now to move the example over to Linux and test there. Oh joy.