Flexible and Pretty Output and Code Cleanup

Code to select the grade tables is now more flexible, allowing for
different types of tables to be scraped. Formatting is now also prettier
in the console when selecting specific grades. Code was cleaned up a bit
as well as some code becoming a function.