 #   console.log modules.web.module2
 # ```
 class Bijous extends EventEmitter
-  # Public: The default bundle configuration for klect. This configuration
-  # describes how all modules are to be found. (default: `modules/*`). For more
-  # information see [klect](https://github.com/awnist/klect).
+  # Public: The default bundle configuration for klect as a {String}. This
+  # configuration describes how all modules are to be found.
+  # (default: `modules/*`). For more information see klect.
   @defaultBundles: 'modules/*'
 
-  # Public: The default bundle name to pass to klect. When a bundle descriptor
-  # is passed from bijous to klect that is not an object (e.g. a string or
-  # an array) this is the name used for the bundle. Bundle results that
-  # bear it's name are not namespaced when received from the `load` callback.
-  # (default: `_`)
-  #
-  # ```coffee
-  # Bijous = require 'bijous'
-  #
-  # bijous = new Bijous
-  #   bundles: 'modules/!(router)'
-  #
-  # bijous.load (err, modules) ->
-  #   # Since our bundle does not have a name the default bundle name is used
-  #   # and it's results are not namespaced
-  #   console.log modules.module1
-  # ```
+  # Public: The default bundle name to pass to klect as a {String}. When a
+  # bundle descriptor is passed from bijous to klect that is not an object
+  # (e.g. a string or an array) this is the name used for the bundle. Bundle
+  # results that bear it's name are not namespaced when received from the `load`
+  # callback, see {setResult}. (default: `_`)
   @defaultBundleName: '_'
 
   # Public: Instantiates a new bijous loader.
   #
-  # options - The hash options used to configure bijous. (default: {})
-  #           :cwd - The directory where modules can be found. Defaults to the
-  #                  directory the module's parent resides in.
+  # options - The hash {Object} used to configure bijous. (default: {})
+  #           :cwd - The directory where modules can be found as a {String}.
+  #                  Defaults to the directory the module's parent resides in.
   #                  (default: `path.dirname(module.parent.filename)`)
-  #           :bundles - The klect bundles descriptor, used to find modules.
-  #                      (default: `Bijous.defaultBundles`)
-  #           :defaultBundleName - The name to use as the default bundle for
-  #                                *klect*. When passing in a string or an array
-  #                                for `bundles` this is the name used as the
-  #                                bundle name. (default:
-  #                                `Bijous.defaultBundleName`)
+  #           :bundles - The klect bundles descriptor as an {Object}, used to
+  #                      find modules. (default: {Bijous.defaultBundles})
+  #           :defaultBundleName - The {String} name to use as the default
+  #                                bundle for *klect*. When passing in a string
+  #                                or an array for `bundles` this is the name
+  #                                used as the bundle name. (default:
+  #                                {Bijous.defaultBundleName})
   constructor: ({@cwd, @bundles, @defaultBundleName} = {}) ->
     @cwd ?= path.dirname module.parent.filename
     @bundles ?= Bijous.defaultBundles

# Returns: `undefined`
loadModule = (def, results, done) ->
  def.module.call null, @, results, (error, result) =>
    if result
      if def.bundle == @defaultBundleName then results[def.name] = result
      else _.merge results[def.bundle] ?= {}, _.object([def.name], [result])

    @emit 'loaded', def.name, def.bundle, results unless error
    done error

  return


  # Public: Retrieves all modules found for it's bundles. When a bundle name is
  # supplied it retrieves files only for the specified bundle.
  #
  # bundle - The bundle name as a {String} to use when retrieving modules.
  #          (optional)
  #
  # ```coffee
  # Bijous = require 'bijous'
