Ironed out a giant bug. Just need to finish the uncompress (currently broken) function to see if this baby actually works!
ps. If I find that the uncompress is easy to fix and my compression method is actually possible to uncompress, I might start to cry. I think that will be it!