add dd demo and update dd api with simple example code