updated API documentation.