Remove duplicated declaration of a save settings function.
Remove cencode header from main, since it's only used within the save settings module.