change arg useSplines to splineFactor

allow for logical TRUE, FALSE, 0..n, I(0)..I(n)
fixed 'if' bug
whitespace
add constant column to data as transform is fussy. only use first value
add examples
updated docs on splineFactor
documented