Fixing labels for figures and tables

It turns out that the label needs to be *inside* the caption. I also turned on the hyperref package so that the citations and references to figures/tables become links.