debug phase 3: created settings.cpp with minor changes to other files
debug phase 4: corrections to files