Save/restore frames (#11)

Probably works (for me) with usual file buffers