Removed unused code, updated graph library and fixed problem with logging after stop