Updated API implementation and API reference docs.