fixed bugs for importing prediction parameters
updated the example code