minor initial code edits

Edited logic for lines 210 - 232 to make things a lot more concise and to avoid unnecessary iterator variables.  Discussed via email the proper way to pull in candidate names and parties using img alt text data