Fix for error and addition of socket docs