initial documentation
fix compiling tools.c
listen only function calls
remove more test code