changed threading modell, introducing StoppableThread class
added zlib compression