 
 		sendRequestToRoutes ctx, routes, next
 
+###
+# The [Koa](http://koajs.com/) middleware function that enables the
+# router to work with the Koa framework. CoffeeScript does not support
+# ES6 generators yet so this function has to be passed through as pure
+# Javascript.
+#
+# Use with: app.use(router.koaMiddleware)
+###
 exports.koaMiddleware = `function *routeMiddleware(next) {
-		console.log("Starting routing");
 		var route = Q.denodeify(exports.route);
 		yield route(this);
 		yield next;

			else
				done()

exports.removeChannel = (channelName, done) ->
	getCollection (collection) ->
		collection.remove {name: channelName}, (err, numberOfRemoveDocs) ->

			else
				done null, item

###
# Updates a channel with a newer version.
# 
# Accepts (channel, done) where channel is the channel to update as a
# Channel object and done is a callback. The callback will be called with
# an Error object is an error occurred.
###
exports.updateChannel = (channel, done) ->
	getCollection (collection) ->
		collection.update {name: channel.name}, channel, (err, result) ->
