added dKdiag_dtheta for the periodic kernels