add ktk and a main function

add ktk and a main function