Reset character count to zero on line break
Only increment the end char and line on next file loc

Consequently reset beginning char when you construct a new token
Better printing of tokens
Print tokens from command line
Use token info for more helpful error messages