add Log.h and Update several files