Was able to get the program to use the controlCodeFunctions class to get index numbers, and return the correct data for index numbers supplied. It is fairly slow though so this needs to be worked on, and the dictionary class and GUI still need completion.