fix valgrind errors
simple data send implemented
all valgrind warnings are fixed in sindex_tools
fix memory leaks