Simplified the code used for reading NDPP tables, fixed a few bugs, and removed variables from global space that I no longer need.