Fixed multiple typos, now it runs properly, if not actually generates the correct graphs.