Added loading and saving device settings from and to a file