added SSplines code plus the nonparametric estimator for the occupancy