Cleaning up code
Fixing makefile to rebuild tests if libgraphd.a changed