Improve comments and add example.