Add examples and more elaborate test-suite.

Probably add some "replay" functionality.
