- fix parseChunk for XF format.
- fix error routine. (case default)
- display offset in error message.