Added restore method.
Merge pull request #4 from pkg/add-term-restore

Added restore method.