Added strncpy function
Added support for kernel logging