Removing unnecessary info in data files