various clean ups.

- Improve file layout comments in readme
- Use endian/ptrsize values to read/write pointers