scala codes for config files and xml creation