Tested the resource graph

There was on error - when a representative is compared against itself.
Otherwise, it seems to be passing all of the tests!
(If you spot anything - let me know!!)
removed commented code
Testing old processes
Fixed waiting issue - forgot to wait on single resource
Reset threshold