Update lastOffset when reading
Allow arbitrary whitespace, not just newline, after xref

Fixes #27.