Fixing syntax error in example.
Smarter select for update and an additional test.
Documenting new api.