tracker is an event emitter

frame v(0) bug fix
code cleaned up into a CS class