Giving better error messages when parsing the battery log.
Adding parentheses for compatibility with IDL 8.0 (self.sections)[index], not needed for later versions of IDL.