display function

It does some what work for hard coded arrays but the outputs are linear
without new lines, which needs to be fixed.