add const to some functions
change the kbase_demo project to a static lib and add a test project