lots of changes. include C-native function. modify C++-native function
so that it works. deleted a file that is not used.