Add write API.
Update examples to match API updates.
Update version.