Retrieve all comments from the file

def _extract_comments(self):
        """Retrieve all comments from the file"""
        self._det_file.seek(0, 0)
        for line in self._det_file.readlines():
            line = line.strip()
            if line.startswith('#'):
                self.add_comment(line[1:])