Compression can now be changed at runtime

assuming that compression is compiled in at build time, compression can
be switched on and off at runtime. Also added some comments in other
areas