Move config to proper folders. Add logging.