Added packetfactory to PacketType.
Changed a lot in Data class