mostly done, compression numbers still off by 25 percent, code needs cleanup