Added documentation and commented the kernels.