reformat_entries now handling malformed lines better.