Documentation and small fix for unix socket code