Using modified sendall() from Beej's guide on server... Got rid of debug code