HTTP response head check added

Better variables names
Check if Content-Type is text/html
dup updated with dup2
numberOfClients bug fixed