API docs for code example improved.