fix some variable names and truncate the counter values at the newline
fix a formatting problem and combine ib_packet type in the types.db