added more documentation for packet.go