Removed useless pthread
Fixed bug with sending text
Added new alloc for Client::buffer