Program now handles bad data in files