Improved comments. Added code to find the maximum ID on a table.
First pass on getting a table with links.