added code examples to API XML docs