Fixes #26. Add throws IOException to rawCompress
#26. Add throws IOException to compress methods