split { onto new lines.
and used instead of some printfs. added print_shape to simplify things a teensy weensy bit.
parsing done, just needs decs updating now..