Added pids and better timing to examples.
Switched to a uv_timer.