Work on tracking and recognition

- tracking now works
- recognition now works