fixed upgrade, added some error proofing for the settings, added upgrade notice