add comment for functions: registerTask, addConfig. Add main comment
add comment for addSprite()