First good graph
fixed makefile, making it easier to test
Cleaned up trajectory generation
Changed rewite to call the transferArc function, and migrated most of the code over (making it generic)