added comments to packet.rb