initial commit
moved utility function to kernelport.h
code cleanup, added license and header