Rename erroneous field name

Table codes and table IDs are different things. Use the proper
terminology.
Add more comments
Replace shorthand values with the full version

Closes #51.