Fix variable ref when reporting error
Finish graphing