Added comments for dialog, fixed example