Numerous changes (see commit details)

Now allowing users to specify whether they want to animate the display
of the golden elements or not.  Broke a few of the pieces of
repetitive/complex logic into function calls.  Other small code tweaks.