PacketFactory bugfixes & updated Gadgeteer with JSON