Multiple changes:

Made the debug flag a required argument
Made the program die with usage, if not given args
Consolidated the table header output
Refactored to return human tables or CSV