Bit-related changes: make all data unsigned chars, and added in a bitToggling function so that converted data has same sense as PDFB3 data.