Updated API reference documentation. Broke out code examples.