Bug fix for case where self.features=None, header added to base.py