Refactored some code for readability.  Getting ready to style external citation box.