add example code
update comments