hold configuration in a structure called dsd_cfg
clean dsd.c and main.c