Fixed bug in timevals passed to event_add

* updated docs
* updated timer-based api
* removed debug code