remove useless methods and add lib mode for logging
add internal log
repace runall.py with runall.sh
add log test
add header