Refactor tracer module and add tests

Signed-off-by: Doug Hellmann <doug.hellmann@gmail.com>
update todo list

Signed-off-by: Doug Hellmann <doug.hellmann@gmail.com>