remove trailing whitespaces
improve mega serial123
horn code rework