Uploading graph processor and error detector

Uploading graph processor and error detector. Needs cleaning up.