modified IO routine for saving settings - settings are now cycled every 1000ms but only saved if there is a diff