Fixed errors in self.update_data
Removed some debug print statements