Added some documentation for the table generation code.