What is kernel .what are the main function of kernel?