   , (error) ->
     callback error, graph
 
-exports.buildGraph = buildGraph
+### Exports ###
+
+module.exports = {Graph, GraphHandler, buildGraph}

        @resolveNode edge, resolved, seen
    resolved.push node
    return resolved

class GraphHandler


  proxy = GraphHandler.proxy contents, (dep) ->
    graph.addDependency current, dep

  locals.contents = proxy # TODO: don't modify locals

  async.eachSeries items, (item, callback) ->
    current = item
