fixing syntax issues
added missing initialization of self.band_gap