add -a switch for averaging y values with same x