added maxTime option and debugging via the visionmedia debug module.