minor refactoring of renderTable()
more work towards pivoting tables
still working on getTable Headers
correctly pivots the first data set, not the other. Still needs much work to be able to pivot data in general
moved pivot logic out of table case
added comments for clarity
removed a couple of redundant functions
now correctly pivots both datasets. Added favicon.