fix bug in excitation module and improve configuration files