Added method descriptions and bound checking for lookups