Fixed documentation and example.