Properly handle comments and empty programs.
Handle input in example programs.