Added constants.js and updated the tasks

Also added some comments on configuration.js