Test
Fix warnings and add some comments to log.h