Added sleep to socket threads, some byte[] were changed to ByteBuffer, changed IDs to short data type allowing up to 65532 clients