Made the tables prettier and added documentation.
Moved test code into a main file, which will handle the overall program control structure.