Implements CAT and name table functions

- Continuously adaptive terrain (CAT) function implemented.
- Name table function implemented.
- Fixes syntax errors when updating code to use new read shortcut
functions.