code tweaks..see comments

added -newcfg to delete the old config, -nosound to keep it quiet.
tweaked the trees a bit also.