commented and simplified config.js

added comments
removed unused code
added a couple of TODO:s