Added kcpm.c and fixed some stuff in other source files, Next up move_pages