Implementing save restore functions
Using new hash
Added comments and examples of usage
Todo