reorganzied config.js and added docs for editting