Added config.js and some cleanup