Cleanup

Cleans up unused code from ObjGraph, ensures matrices are outputted as a
2D array in JSON (thus preserving form).