fixed bad example
updated API docs