update comments, add example