Add EOF handling.
Fixes #10
Adds keyword detection.
Fixes #8.