Add packet class
Changes to sending a Packet object
Fix build