update readme
add code comments and update examples