improve lexer errors

- match and print word instead of individual characters
- work on #1