adding config file for languages to load on startup, code cleanup