fix bug in start of module and tune gains in configuration file