The copy-paste strikes again.
Import cleanup.
Added setting for hologram render distance.
Added some settings for easier debugging.
Minor refactoring.
Throwing an actual error back to Lua if palette index is invalid (instead of returning nil, message).