Add Kernel.diag default implementation.
Document how to implement kernels.