implemented update_table, converted table_of_next_words to call update_table
fixed update_table to use add_word. also s/d/table/ to keep up with correct variable names.