halt if index not in translation hash table
add documentation
remove unused code
continue structuring main