Added log.h and updated some stuff, more functions will be added later.
need to move definition to .c and delcaration in .h, bah I am lazy.
Added files