formatting
Add rewind-writing and reading