clean up frame's stride (x_row) code, comments, macros
clean up format for existing legends in core and data files