Fix bugs. Add compression and improper lists. Add tests.