cleans dumplines and removes comments