1) is.null check need to be done before nrow==0 to avoid error when is.null is true.
2) added some jitter to x values in prediction when there are too few unique x values
Check only in generation==0 data for duplicates when uploading.
Predicted data should not overwrite experimental data!