added some more code to the electricity monitor.