Added better dependency graph implementation (project is now actually usable\!)