bug fixes

* move critical time from node to edge, where it belongs
* nodes with multiple outputs didn't take the max of their outputs
* if multiple targets where mentioned and they were connected by a path,
  things didn't work