Update continuouspredictor.R

Update function definitions and fixed bugs