added C code generator for netlog, fixed some log entries