Lots of bug fixes. Graph tests for basic functions and copying pass now.