Add documentation using YUIdoc for main.js and Node.js.