update readme and demo html and add events callback