Added changes from Dr. Thoma
Refactor appendTableRows function
Attached HEAD