Added resetNext() to clear entered values. Moved array index closer to entry.