Massive changes to scripts, added unit tests for (almost all) scripts, plus a few tweaks to configuration,