Changed unsigned to signed buffers.
Renamed client and fixed Makefile
Fix buffer in logging function