created kapi.cpp and kapi.hpp
little modifications