added some explanations to function arguments in socket module