Added samples in the API documentation.