Removed some redundant error checking, simplified some names for error messages, clarified some comments, made a few Lua tables more efficient, fixed saylinks, etc.