Added some adjustments to the next sample predictor example and debug messages to the dataset wrapper