refactoring and documentation of reconfig.debian.sh