Added a lookup_validation script (moved from bootstrap repository).
Added more failsafe checks to lookup_validation.
Incorrect indexing of day/night variables leftover from previous use.