Cleaned up

Introduced a 'lolcat' namespace into the program, and added the 'auto'
keyword usage into the code to make it slightly less verbose. Refactored
the TableEntryGen class into a free function in the namespace. Removed
redundant istream close calls which get called when leaving scope
anyway.