added config-file and made necessary adaptions