Correcting bugs + adding a new structure socket_info