 {EventEmitter} = require 'events'
 Klect = require 'klect'
 
-# Internal: Gets a module's name based off of it's path.
-#
-# file - The path of the file as {String}
+# Public: Determines a module's name using it's path.
+#
+# file - The path of the file as a {String}
 #
 # ```coffee
 # getModuleName('/modules/module1.js')

  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
loadModule = (def, results, done) ->
  def.module.call null, @, results, (error, result) =>
    if result


  # 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
