changed dstate to a string

in the line self.dfile = dstate, chacnged to self.dfile = 'dstate';