add kernel code.
Merge pull request #4 from hansode/docs

add kernel code.