Added makefile
Added support for compresoin of data before sending (contains segfault due to multithreading in send_data())