Better looping through the object.

Fixes a bug that could arise if you deleted annotations.
Button rather than link in demo.