Consecutive identical commands are removed, ignoring comments. Comments are lines starting with ";" or "(".