Added more documentation for registerTask.js

As discussed