gbm: Add documentation for the public facing API