CRUISE: Add a couple of checks to avoid the use of negative indices in arrays. Some minor rework in the data Loader