Added functions to read and write JBIG compressed images.
Added functions to compress files with paq8o6.
Minor tweaks to the output.