Removed debug code from socket. Fixed Makefile to build obj and bin dirs