     if options.schema and options.schema.indexOf('/') is -1
       throw new Error "Invalid port schema '#{options.schema}' specified. Should be URL or MIME type"
 
-    options
+    return options
 
   getId: ->
     unless @node and @name
       return 'Port'
-    "#{@node} #{@name.toUpperCase()}"
+    return "#{@node} #{@name.toUpperCase()}"
 
-  getDataType: -> @options.datatype
-  getSchema: -> @options.schema or null
-  getDescription: -> @options.description
+  getDataType: -> return @options.datatype
+  getSchema: -> return @options.schema or null
+  getDescription: -> return @options.description
 
   attach: (socket, index = null) ->
     if not @isAddressable() or index is null

      @emit 'detach', socket, index
      return
    @emit 'detach', socket

  isAddressable: ->
    return true if @options.addressable
    false

  isBuffered: ->
    return true if @options.buffered
    false

  isRequired: ->
    return true if @options.required
    false

  isAttached: (socketId = null) ->
    if @isAddressable() and socketId isnt null
      return true if @sockets[socketId]
      return false
    return true if @sockets.length
    false

  listAttached: ->
    attached = []
    for socket, idx in @sockets
      continue unless socket
      attached.push idx
    attached

  isConnected: (socketId = null) ->
    if @isAddressable()

      @emit 'attach', socket, index
      return
    @emit 'attach', socket
    return

  attachSocket: -> return

  detach: (socket) ->
    index = @sockets.indexOf socket
