added field for update interval for battery. writing it to file and loading it from file on open