Finished the initial settings update script.
Improved settings save functionality.