Template impl of kmodule

Signed-off-by: Bhushan J <j.bhushan.r@gmail.com>