Error in logic

Must read the first header before I calculate the HeaderSize! Oops.
Also add newlines to errors.