bug fix
modified protection
fixed input branches
linear extrapolation of splines