started with writing to logging battery info to new file when graph grows too tal