   extname = path.extname file
   path.basename file, extname
 
-# Internal: Loads a singular module. Handles populating the module's result
-# object. Emits the `loaded` event when a module is successfully loaded. The
-# `loaded` event handler receives three parameters, the module's name, the
-# bundle's name, and the module's results.
-#
-# Returns nothing
+
+# Public: Loads a singular module as described by {Bijous}. Handles populating
+# the module's result object.
+#
+# def     - The module's definition as an {Object} with the following keys:
+#           :name - The module's name
+#           :bundle - The bundle's name
+#           :module - The module's load function
+# results - The results of all previously loaded modules as an {Object}
+# done    - Alerts bijous when the module has loaded, is a {Function}, the first
+#           argument will be an {Error} if one has occurred.
+#
+# Returns: `undefined`
+# Emits loaded when a module has successfully loaded. The first argument will be
+#   a {String} representing the module's name, the second argument will be a
+#   {String} representing the bundle's name, the third argument will be an
+#   {Object} containing the results of the module's execution.
 loadModule = (def, results, done) ->
   def.module.call null, @, results, (error, result) =>
     if result

# in much the same ways. What bijous adds is the ability to `load` and `require`
# modules conforming to [node.js](http://nodejs.org/api/modules.html). Modules
# used in this way must conform to bijous' module interface which is described
# as a node module exporting a singular function that receives three parameters
# corresponding to the `bijous` object loading the module, the currently
# returned `results` from previously loaded modules, and the `callback` that
# alerts bijous that the module has completed loading. The `callback` function
# receives two parameters that correspond to any errors that have
# occurred, and can optionally return an object that represents the result of
# the module.
#
# ```coffee
# # We can assume that the following four lines describes the module being


  # Public: Calls node's `require` function for all module files found for it's
  # bundles, and executes the returned module function. When a bundle name is
  # supplied it loads the files only for the specified bundle.
  #
  # bundle - The bundle name to use when retrieving modules. (optional)
  # callback - The callback function to use when all modules are loaded. The
