Initial checkin of settings.c