Pivot the Capture Table

I modified the "capture" operation to print the link/word table so that the words are listed in the columns rather than in the rows of the table.

Also, I placed the `__name__ == "__main__"` material is a `main()` function.