adding demo for binary data
fix for #291 reimplement restore
Merge pull request #293 from waterbearlang/291_restore

291 restore