Added a frame update counter
Revised link to the Madgwick article