Fixed bug in C++ when reading hyperparameters. Completed and checked the R package.