Added some comments and added cancel to the demo