Cleaned up code, added debug messages, moved filewriting to seperate functions
Storing compressions was adding a lot of overhead.  Don't do it anymore