start of graphs, set up the first of the relay code. should work

Needs a lot of refining, but the relay code should now work