skip comma in last row of 2D array
add option for formatting as preprocessor macro