added a bunch of stuff to PacketFactory (deserialization and pseudocode for executes)