Solved issue with words that don't have entries returning only two values. Removed a couple of unnecessary print statements.