API docs and simple example