Include line number in error messages.
Fix first-line bug.

First character of first line was always being skipped.