Updated sample url
updated debug mode
Improved sample