lib/socket: update style of the native module & move comments to doc