Refactored table creation by breaking out different aspects of the table view with helper functions to instantiate each component of the overall table.
Fixes #1.