Fixing BuildGraph, adding basic test.

Tweaking some formatting and names.