Changed setq to let for most variables (still learning).  It now compiles without warnings.