Refactor Tracker::track()

Since #16 (closed) must wait for now, I'll try to refactor the Tracker::track() method first. The e2e test should ensure that the behaviour of the code does not change.

This primarily means:

  • Doxygen comments
  • Splitting thw method into multiple smaller ones