change inspected packet output format.
move inspectRawPacket function into util.js file.