created all record fields, constants and IO routines. TODO: header length calculation, IP/UDP checksums