remove duplicate lines and reformat for 80 columns limit