update comments and example