keeping track of file offset, making sure to fseek after freads, `make test` now passing
making sure to fflush after fwrite