* removed some minor bugs. a memory test is still failing. this seems to be cause by caching the graphs.