finished gesture tracking, implemented debug mode