Updated XMLTest with JSON example. Some minor code changes. Working on enums for PacketType.