Added several new helper methods and removed nms import, fixed NPE for PacketFields

Signed-off-by: Irmo van den Berge <bergerkiller@gmail.com>