Fix id bounds check for actuator + update graph code

I dunno, graph code seems to work... too tired to continue.