Added more documentation for registerTask.js