Dialog code, demo, and readme