Update examples to use empty listener.
Remove obsolete run() method.
Move parse() to program prototype.
Tidy imports.
Update api comments.