Set up structure.
Not done, pretty sure my decompression code doesn't work all the time, and isn't close to efficient. Also need tests.