Added socket module (covers all socket related functions) (needs testing)