add toString to Index for debugging